package com.exchange.controller.app.coin;

import com.exchange.interceptor.BaseValidator;
import com.exchange.interceptor.EnumError;
import com.jfinal.core.Controller;
import com.jfinal.kit.Ret;

public class CoinValidator extends BaseValidator {
	
	protected void validate(Controller c) {
		setRet(Ret.fail());
    	this.setShortCircuit(true);//短路型验证
    	
    	String url = getActionKey();
		if(url.equals("/app/coin/info")) {
			validateRequiredString("coin", "msg", EnumError.PARAMETER_ARE_MISSING.getCode());
		}
		
		
	}

}
